package com.yfl.logistics.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 订单明细
 * </p>
 *
 * @author ${author}
 * @since 2020-06-13
 */
@TableName("t_order_detail")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单明细id
     */
    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Long orderDetailId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 货物名称
     */
    private String goodsName;

    /**
     * 货物数量
     */
    private Integer goodsNumber;

    /**
     * 货物单位
     */
    private Long goodsUnit;

    /**
     * 货物单价
     */
    private BigDecimal goodsUnitPrice;

    /**
     * 获取总价
     */
    private BigDecimal goodsTotal;

    /**
     * 备注
     */
    private String goodsRemark;


    public Long getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Long orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Long getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(Long goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public BigDecimal getGoodsUnitPrice() {
        return goodsUnitPrice;
    }

    public void setGoodsUnitPrice(BigDecimal goodsUnitPrice) {
        this.goodsUnitPrice = goodsUnitPrice;
    }

    public BigDecimal getGoodsTotal() {
        return goodsTotal;
    }

    public void setGoodsTotal(BigDecimal goodsTotal) {
        this.goodsTotal = goodsTotal;
    }

    public String getGoodsRemark() {
        return goodsRemark;
    }

    public void setGoodsRemark(String goodsRemark) {
        this.goodsRemark = goodsRemark;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
        "orderDetailId=" + orderDetailId +
        ", orderId=" + orderId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsUnit=" + goodsUnit +
        ", goodsUnitPrice=" + goodsUnitPrice +
        ", goodsTotal=" + goodsTotal +
        ", goodsRemark=" + goodsRemark +
        "}";
    }
}
